package ouyuwang.gpsbox;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yupeng on 17/07/19.
 */

public class TimeUtil {

    public static String nowTime(){
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss.sss");
        return sf.format(new Date());
    }

    public static String nowTimeFileName(){
        SimpleDateFormat sf = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
        return sf.format(new Date())+".txt";
    }

}
